<template>
  <div class="ajax">
     <button v-on:click="ajaxRequest">模拟Ajax请求</button>
  </div>
</template>

<script>
export default {
  name: 'ajax',
  methods: {
    ajaxRequest: function () {
     /*  this.$http.post('', params).then(response => {

      }) */
     /*  this.$http.get('http://127.0.0.1/cms').then(function (data) {
        var json = data.msg
        alert(json)
      }) */
      this.$http.get('http://192.168.34.14:80/vcdp/alertRecord/1').then(response => {
        // debugger
        // let result = response.msg
        // alert(result)
        alert(13223)
      })
    }
  }
}
</script>

<style>

</style>
